package com.atguigu.spzx.product.mapper;

import com.atguigu.spzx.model.dto.product.ProductSkuDto;
import com.atguigu.spzx.model.pojo.product.Product;
import com.atguigu.spzx.model.pojo.product.ProductSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductSkuMapper extends BaseMapper<ProductSku> {
    List<ProductSku> getProductSkuBySale();

    List<ProductSku> findPage(@Param("dto") ProductSkuDto productSkuDto);

    Product getProductBySkuId(Integer skuId);
}
